package com.cstor.liang.pojo.other;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * Created by Administrator on 2017/9/6.
 */
public class PageVo {

    @Min(value = 1, message = "pageIndex > 0")
    @NotNull(message = "缺少pageIndex")
    private Integer pageIndex;

    @Min(value = 1, message = "pageSize > 0")
    @NotNull(message = "缺少pageSize")
    private Integer pageSize;

    public PageVo() {
    }

    public Integer getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(Integer pageIndex) {
        this.pageIndex = pageIndex;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
